package model

import "time"

type UpFile struct {
	Uid        string    `xorm:"not null    PK varchar(20)"`
	Fname      string    `xorm:"not null    varchar(40)"`
	Ftype      string    `xorm:"not null    varchar(5)"`
	UperCode   string    `xorm:"null      varchar(20)"`
	TypeId     int       `xorm:"null      int(20)"`
	UpdateTime time.Time `xorm:"null datetime"`
}

func (f *UpFile) TableName() string {
	return "upfile"
}

type UpFileTypeMod struct {
	TypeId     int       `xorm:"NOT NULL     AUTO_INCREMENT    PK  int(11)"`
	TypeName   string    `xorm:"not null VARCHAR(255)"`
	ParentId   int       `xorm:"not null int(255)"`
	TypeFile   int       `xorm:"null      int(20)"`
	CreateTime time.Time `xorm:"null datetime"`
	UpdateTime time.Time `xorm:"null datetime"`
}

func (v *UpFileTypeMod) TableName() string {
	return "upfile_type"
}
